// 这里放置全局的变量
const isDev = __LOCAL__;
const context = document.getElementById('officeContext').value;
//const context = document.getElementById('context').value;

let userHiddenId = document.getElementById('userHiddenId').value;
let orgHiddenId = document.getElementById('orgHiddenId').value;
//context = context1;
//const context = "/flexoffice";
//const urlPrefix = isDev ? '/mock/' : context+'/client/office/questionnaire/';
const urlPrefix = isDev ? '/mock/' : context+'/api/m/questionnaire/';
const urlPrefix1 = isDev ? '/mock/' : context+'/api/m/forum/';

// 静态资源根路径
var contextPageUrl = getLoginUserInfo().contextPageUrl;

export default {
  urlPrefix,
  isDev,
  // 这里放置全局的调用的URL
  URLS: {
    
    entityIsExist:urlPrefix+"entityIsExist?token="+getLoginUserInfo().token,//实体类是否存在
    getWaitingQues:urlPrefix+"getDingMyAnswerList?type=0&token="+getLoginUserInfo().token,//获得待答问卷
    getAllQues:urlPrefix+"getDingQuesList?token="+getLoginUserInfo().token,//根据所有问卷
    getMyAnswer:urlPrefix+"getDingMyAnswerList?type=1&token="+getLoginUserInfo().token,//获得我的答卷
    getMyAsk:urlPrefix+"getDingMyQuesList?token="+getLoginUserInfo().token,//获得我的问卷
    getDingQuesForm:urlPrefix+"getDingQuesForm?token="+getLoginUserInfo().token,//获取问卷表单信息
    saveQues:urlPrefix+"save?token="+getLoginUserInfo().token,    //保存问卷
    getDingQuesInfo:urlPrefix+"getDingQuesInfo?token="+getLoginUserInfo().token, //查询问卷详情
    answerEdit:urlPrefix+"answerEdit?token="+getLoginUserInfo().token, //保存答卷
    getReadedReport:urlPrefix1+"allpostList?token="+getLoginUserInfo().token, //获取已读汇报列表
  	demoView:urlPrefix+"demoView?token="+getLoginUserInfo().token, //列表查看,
  	mock:urlPrefix+"query/getSomeInfo.json",//demo列表 
    getBackReason:urlPrefix+"getBackReason?token="+getLoginUserInfo().token,

    //my
    updateQuesPublish : urlPrefix + "updateQuesPublish?token="+getLoginUserInfo().token,//更新问卷发布状态
    deletQuesById : urlPrefix + "deletQuesById?token="+getLoginUserInfo().token, //删除问卷
    getQuesInfoById: urlPrefix + "getQuesInfoById?token="+getLoginUserInfo().token, //查询问卷信息
    getDingMyAnswerList:urlPrefix + "getDingMyAnswerList?token="+getLoginUserInfo().token, //获取我的答卷列表
    saveDesign : urlPrefix + "saveDesign?token="+getLoginUserInfo().token, //保存设计问卷

    getQuestTopic : urlPrefix + "getQuestTopic?token="+getLoginUserInfo().token,//获取问卷题目信息

    getUserName : urlPrefix + "getUserName?token="+getLoginUserInfo().token,//获取用户姓名

    getStatisticsList : urlPrefix + "getStatisticsList?token="+getLoginUserInfo().token,//获取用户统计列表

    getStatisticsPersonList:urlPrefix + "getStatisticsPersonList?token="+getLoginUserInfo().token,//获取提交人员列表

    getNoAnwserPersonList:urlPrefix + "getNoAnwserPersonList?token="+getLoginUserInfo().token,//获取未答人员列表

    quesBack　:urlPrefix + "quesBack?token="+getLoginUserInfo().token,  //问卷回退
    getStatistics :urlPrefix + "getStatistics?token="+getLoginUserInfo().token, //问卷统计详情

    getOptionDetail : urlPrefix + "getOptionDetail?token="+getLoginUserInfo().token, //特殊题型详情数据查询

    telSendMessage : urlPrefix + "telSendMessage?token="+getLoginUserInfo().token, //手机端发送提醒

    getRankingList: urlPrefix + "getRankingList?token="+getLoginUserInfo().token,//获取成绩排名
  	},
  nodataIcon:contextPageUrl+"/mobile/fmui/images/noData.png",
  loadingIcon:contextPageUrl+"/mobile/fmui/images/loading.gif",
  msgNoData:contextPageUrl+"/mobile/fmui/images/state-nodata.png",
  weidaoshijian:contextPageUrl+"/mobile/fmui/images/weidaoshijian.png",
  shijianyidao:contextPageUrl+"/mobile/fmui/images/shijianyidao.png"
};
